From 43e7ba58ecebf1a1e0d693adb190cfbdc7d3fd19 Mon Sep 17 00:00:00 2001
From: Leah Rowe <info@minifree.org>
Date: Fri, 3 May 2024 06:24:49 +0100
Subject: [PATCH 7/9] Never download blobs, even if USE_BLOBS=y

same idea as my never-microcode patches. i maintain
canoeboot and i like to re-use the same configs from
lbmk. with this and the never-microcode patch, it should
now be possible to re-use lbmk coreboot configs unmodified!

when those configs are used in cbmk, the relevant blobs
are never downloaded, ever.

Signed-off-by: Leah Rowe <info@minifree.org>
---
 Makefile.mk | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/Makefile.mk b/Makefile.mk
index ca79d053ad..9420d923f0 100644
--- a/Makefile.mk
+++ b/Makefile.mk
@@ -230,21 +230,6 @@ $(info Updating git submodules.)
 forgetthis:=$(shell git submodule update --init $(quiet_errors))
 # Checkout Cmocka repository
 forgetthis:=$(shell git submodule update --init --checkout 3rdparty/cmocka $(quiet_errors))
-ifeq ($(CONFIG_USE_BLOBS),y)
-# These items are necessary because each has update=none in .gitmodules.  They are ignored
-# until expressly requested and enabled with --checkout
-forgetthis:=$(shell git submodule update --init --checkout 3rdparty/blobs $(quiet_errors))
-forgetthis:=$(shell git submodule update --init --checkout 3rdparty/intel-microcode $(quiet_errors))
-ifeq ($(CONFIG_FSP_USE_REPO),y)
-forgetthis:=$(shell git submodule update --init --checkout 3rdparty/fsp $(quiet_errors))
-endif
-ifeq ($(CONFIG_USE_AMD_BLOBS),y)
-forgetthis:=$(shell git submodule update --init --checkout 3rdparty/amd_blobs $(quiet_errors))
-endif
-ifeq ($(CONFIG_USE_QC_BLOBS),y)
-forgetthis:=$(shell git submodule update --init --checkout 3rdparty/qc_blobs $(quiet_errors))
-endif
-endif
 UPDATED_SUBMODULES:=1
 COREBOOT_EXPORTS += UPDATED_SUBMODULES
 
-- 
2.39.5

